#include "variables.h"

Variables::Variables(void)
{
	boolMap["ed_snap_to_grid"] = true;
	boolMap["ed_snap_to_vertex"] = true;
	
	boolMap["gfx_show_fps"] = true;
}

void Variables::setVar(char *name, bool value)
{
	boolMap[name] = value;
}

void Variables::setVar(char *name, char *value)
{
	stringMap[name] = value;
}

void Variables::setVar(char *name, int value)
{
	intMap[name] = value;
}

void Variables::setVar(char *name, float value)
{
	floatMap[name] = value;
}

const char *Variables::getStringVar(char *name)
{
	return stringMap[name];
}

int Variables::getIntVar(char *name)
{
	return intMap[name];
}

float Variables::getFloatVar(char *name)
{
	return floatMap[name];
}

bool Variables::getBoolVar(char *name)
{
	return boolMap[name];
}
